<!DOCTYPE html>
<html lang="zn" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>hello fragement</title>
</head>
<body>
<footer th:fragment="com1">
    这里是片段一嗷
</footer>
<div id="com2">
    这里是片段二嗷
</div>
</body>
</html>